#include "brick.h"
#include "stock.h"


brick::brick(int x,int y)
{
  life = 1;
  posx = x;
  posy = y;
  bk.setRect(x,y,BRICK_LENGTH,BRICK_WIDTH);
  is_son = false;
  isLive = true;
  ishard = false;
}

brick::~brick()
{
}

int brick::get_brick_x()
{
    return posx;
}

int brick::get_brick_y()
{
    return posy;
}


void brick::change_pos(int xx ,int yy )
{
    posx = xx;
    posy = yy;
    bk.setX(xx);
    bk.setY(yy);
}
